package cn.waqwb.bwcar.service.impl;

import cn.waqwb.bwcar.dao.SysRoleMapper;
import cn.waqwb.bwcar.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author JokerQ
 * @date 2019/11/14 - 16:38
 */
@Service
public class RoleServiceImpl implements RoleService {

    @Autowired
    private SysRoleMapper sysRoleMapper;

    @Override
    public List<String> findRolesByUserId(Long userId) {
        return sysRoleMapper.findRolesByUserId(userId);
    }
}
